while True:
    salary_in=input('请输入您的薪水（单位为万）：')
    salary=float(salary_in)
    if salary <=10:
        bonus =salary *0.1
    elif salary <=20:
        bonus = 10*0.1+(salary-10)*0.075
    elif salary <=40:
        bonus = 10*0.1+10*0.075+(salary-20)*0.05
    elif salary <=60:
        bonus = 10*0.1 + 10*0.075 +20*0.05 +(salary-40)*0.03
    elif salary<=100:
        bonus = 10*0.1 + 10*0.075 + 20*0.05 +20*0.03+(salary-60)*0.015
    else:
        bonus=10*0.1 +10*0.075+20*0.05+20*0.03+40*0.015+(salary-100)*0.01
    print('您的奖金为：%.2f 万元' % bonus)
